package com.recycle.controller;

import com.recycle.common.ServerResponse;
import com.recycle.res.CategoryResp;
import com.recycle.service.CateGoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import  java.util.*;
@RestController
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    private CateGoryService cateGoryService;
    @GetMapping("/getCategory")
    public ServerResponse<List<CategoryResp>> getCategory(){
        return cateGoryService.getCategory();
    }
}
